
from helpers import Singleton

class Doctors(Singleton.Singleton):
    
    def __init__(self):
        
        '''
        0 = GAD
        1 = GUDAVALLI
        2 = HOANG
        3 = NADROO
        4 = RON
        5 = SUK
        '''
        
        self.doctorNames = ['GAD', 'GUDAVALLI', 'HOANG', 'NADROO', 'RON', 'SUK']
        
        ''' map from doctor names to id '''
        self.doctorIds = dict()
        for doctorId in range(len(self.doctorNames)):
            self.doctorIds[self.doctorNames[doctorId]] = doctorId
            
if __name__ == '__main__':
    d1 = Doctors()
    d2 = Doctors()

    if(id(d1)==id(d2)):
        print "Same"
    else:
        print "Different"
        
    print d1.doctorIds['SUK']